/*
 * Copyright 2013-2015 the original author or authors.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.xdtech.trans.vo;

/**
 * 
 * @author max.zheng
 * @create 2015-7-4下午11:37:23
 * @since 1.0
 * @see
 */
public class AppPerson {
	private String name;
	private String loginName;
	private String mobilePhone;
	private String websiteName;
	public AppPerson() {
		super();
		// TODO Auto-generated constructor stub
	}
	public AppPerson(String name, String loginName, String mobilePhone,
			String websiteName) {
		super();
		this.name = name;
		this.loginName = loginName;
		this.mobilePhone = mobilePhone;
		this.websiteName = websiteName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getMobilePhone() {
		return mobilePhone;
	}
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	public String getWebsiteName() {
		return websiteName;
	}
	public void setWebsiteName(String websiteName) {
		this.websiteName = websiteName;
	}
	/**
	 * 
	 * @author max.zheng
	 * @create 2015-7-4下午11:40:04
	 * @modified by
	 * @param personItem
	 * @return
	 */
	public static AppPerson createPerson(PersonItem personItem) {
		AppPerson appPerson = new AppPerson();
		appPerson.setLoginName(personItem.getLoginName());
		appPerson.setMobilePhone(personItem.getMobilePhone());
		appPerson.setName(personItem.getName());
		appPerson.setWebsiteName(personItem.getWebsiteName());
		return appPerson;
	}
	
	
	
}
